import { makeAutoObservable, runInAction } from "mobx"
import { http } from "../utils"



class SubjectStore {
  subjectList = []
  constructor() {
    makeAutoObservable(this)
  }
  getSubjectList = async () => {
    const res = await http.get('/base_server/api/v1/pub/subject/list')


    runInAction(() => {
      this.subjectList = res.data

    })

  }
}
export default SubjectStore